package DataStructure.graph;


public class Vertex {
    protected int number;
    protected int weight;
    protected Vertex next;
    protected boolean flag =false;

    public Vertex(int number, int weight,Vertex vertex) {
        this.number = number;
        this.weight = weight;
        this.next = vertex;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setNext(Vertex next) {
        this.next = next;
    }
}
